package com.jiyun.config;//package com.jiyun.goods.config;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.DirectExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class RabbitMQConfig {
//
//    //    队列
//    @Bean
//    public Queue queue() {
//        return new Queue("pei.heng", true);
//    }
//
//    //    交换机
//    @Bean
//    public DirectExchange directExchange() {
//        return new DirectExchange("pei.lin");
//    }
//
//    //    队列交换机绑定
//    @Bean
//    public Binding binding(Queue queue, DirectExchange directExchange) {
//        return BindingBuilder.bind(queue).to(directExchange).with("");
//    }
//
//
//}